/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

/**
 * @author User
 */
public class Accounting extends MIDlet implements CommandListener {
    
    private boolean midletPaused = false;

//<editor-fold defaultstate="collapsed" desc=" Generated Fields ">//GEN-BEGIN:|fields|0|
private java.util.Hashtable __previousDisplayables = new java.util.Hashtable ();
private List lstOpTypes;
private Form frmOpEdit;
private StringItem opEditFormOpTypeStrItem;
private TextBox txtAddOpType;
private List lstMenu;
private Command lstOpTypesExitCommand;
private Command opTypeSelectCommand;
private Command frmOpEditCancelCommand;
private Command addOpTypeItemCommand;
private Command txtAddOpTypeOkCommand;
private Command txtAddOpTypeCancelCommand;
private Command lstMenuItemCommand;
private Command lstMenuBackCommand;
//</editor-fold>//GEN-END:|fields|0|
    /**
     * The Accounting constructor.
     */
    public Accounting() {
    }

//<editor-fold defaultstate="collapsed" desc=" Generated Methods ">//GEN-BEGIN:|methods|0|
/**
 * Switches a display to previous displayable of the current displayable.
 * The <code>display</code> instance is obtain from the <code>getDisplay</code> method.
 */
private void switchToPreviousDisplayable () {
Displayable __currentDisplayable = getDisplay ().getCurrent ();
if (__currentDisplayable != null) {
Displayable __nextDisplayable = (Displayable) __previousDisplayables.get (__currentDisplayable);
if (__nextDisplayable != null) {
switchDisplayable (null, __nextDisplayable);
}
}
}
//</editor-fold>//GEN-END:|methods|0|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: initialize ">//GEN-BEGIN:|0-initialize|0|0-preInitialize
/**
 * Initializes the application.
 * It is called only once when the MIDlet is started. The method is called before the <code>startMIDlet</code> method.
 */
private void initialize () {//GEN-END:|0-initialize|0|0-preInitialize
        // write pre-initialize user code here
//GEN-LINE:|0-initialize|1|0-postInitialize
        // write post-initialize user code here
}//GEN-BEGIN:|0-initialize|2|
//</editor-fold>//GEN-END:|0-initialize|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Method: startMIDlet ">//GEN-BEGIN:|3-startMIDlet|0|3-preAction
/**
 * Performs an action assigned to the Mobile Device - MIDlet Started point.
 */
public void startMIDlet () {//GEN-END:|3-startMIDlet|0|3-preAction
        // write pre-action user code here
switchDisplayable (null, getLstOpTypes ());//GEN-LINE:|3-startMIDlet|1|3-postAction
        // write post-action user code here
}//GEN-BEGIN:|3-startMIDlet|2|
//</editor-fold>//GEN-END:|3-startMIDlet|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Method: resumeMIDlet ">//GEN-BEGIN:|4-resumeMIDlet|0|4-preAction
/**
 * Performs an action assigned to the Mobile Device - MIDlet Resumed point.
 */
public void resumeMIDlet () {//GEN-END:|4-resumeMIDlet|0|4-preAction
        // write pre-action user code here
//GEN-LINE:|4-resumeMIDlet|1|4-postAction
        // write post-action user code here
}//GEN-BEGIN:|4-resumeMIDlet|2|
//</editor-fold>//GEN-END:|4-resumeMIDlet|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Method: switchDisplayable ">//GEN-BEGIN:|5-switchDisplayable|0|5-preSwitch
/**
 * Switches a current displayable in a display. The <code>display</code> instance is taken from <code>getDisplay</code> method. This method is used by all actions in the design for switching displayable.
 * @param alert the Alert which is temporarily set to the display; if <code>null</code>, then <code>nextDisplayable</code> is set immediately
 * @param nextDisplayable the Displayable to be set
 */
public void switchDisplayable (Alert alert, Displayable nextDisplayable) {//GEN-END:|5-switchDisplayable|0|5-preSwitch
        // write pre-switch user code here
Display display = getDisplay ();//GEN-BEGIN:|5-switchDisplayable|1|5-postSwitch
Displayable __currentDisplayable = display.getCurrent ();
if (__currentDisplayable != null  &&  nextDisplayable != null) {
__previousDisplayables.put (nextDisplayable, __currentDisplayable);
}
if (alert == null) {
display.setCurrent (nextDisplayable);
} else {
display.setCurrent (alert, nextDisplayable);
}//GEN-END:|5-switchDisplayable|1|5-postSwitch
        // write post-switch user code here
}//GEN-BEGIN:|5-switchDisplayable|2|
//</editor-fold>//GEN-END:|5-switchDisplayable|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Method: commandAction for Displayables ">//GEN-BEGIN:|7-commandAction|0|7-preCommandAction
/**
 * Called by a system to indicated that a command has been invoked on a particular displayable.
 * @param command the Command that was invoked
 * @param displayable the Displayable where the command was invoked
 */
public void commandAction (Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction
 // write pre-action user code here
if (displayable == frmOpEdit) {//GEN-BEGIN:|7-commandAction|1|36-preAction
if (command == frmOpEditCancelCommand) {//GEN-END:|7-commandAction|1|36-preAction
 // write pre-action user code here
switchToPreviousDisplayable ();//GEN-LINE:|7-commandAction|2|36-postAction
 // write post-action user code here
}//GEN-BEGIN:|7-commandAction|3|55-preAction
} else if (displayable == lstMenu) {
if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|3|55-preAction
 // write pre-action user code here
lstMenuAction ();//GEN-LINE:|7-commandAction|4|55-postAction
 // write post-action user code here
} else if (command == lstMenuBackCommand) {//GEN-LINE:|7-commandAction|5|66-preAction
 // write pre-action user code here
switchToPreviousDisplayable ();//GEN-LINE:|7-commandAction|6|66-postAction
 // write post-action user code here
}//GEN-BEGIN:|7-commandAction|7|16-preAction
} else if (displayable == lstOpTypes) {
if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|7|16-preAction
 // write pre-action user code here
lstOpTypesAction ();//GEN-LINE:|7-commandAction|8|16-postAction
 // write post-action user code here
} else if (command == addOpTypeItemCommand) {//GEN-LINE:|7-commandAction|9|43-preAction
 // write pre-action user code here
switchDisplayable (null, getTxtAddOpType ());//GEN-LINE:|7-commandAction|10|43-postAction
 // write post-action user code here
} else if (command == lstMenuItemCommand) {//GEN-LINE:|7-commandAction|11|58-preAction
 // write pre-action user code here
switchDisplayable (null, getLstMenu ());//GEN-LINE:|7-commandAction|12|58-postAction
 // write post-action user code here
} else if (command == lstOpTypesExitCommand) {//GEN-LINE:|7-commandAction|13|20-preAction
 // write pre-action user code here
exitMIDlet ();//GEN-LINE:|7-commandAction|14|20-postAction
 // write post-action user code here
} else if (command == opTypeSelectCommand) {//GEN-LINE:|7-commandAction|15|24-preAction
 // write pre-action user code here
isOpTypeSelected ();//GEN-LINE:|7-commandAction|16|24-postAction
 // write post-action user code here
}//GEN-BEGIN:|7-commandAction|17|48-preAction
} else if (displayable == txtAddOpType) {
if (command == txtAddOpTypeCancelCommand) {//GEN-END:|7-commandAction|17|48-preAction
 // write pre-action user code here
switchToPreviousDisplayable ();//GEN-LINE:|7-commandAction|18|48-postAction
 // write post-action user code here
} else if (command == txtAddOpTypeOkCommand) {//GEN-LINE:|7-commandAction|19|46-preAction
 // write pre-action user code here
 ///@todo: add option type in storage, and call "redraw" method. 
 this.getLstOpTypes().append(this.getTxtAddOpType().getString(), null);   
switchDisplayable (null, getLstOpTypes ());//GEN-LINE:|7-commandAction|20|46-postAction
 // write post-action user code here
}//GEN-BEGIN:|7-commandAction|21|7-postCommandAction
}//GEN-END:|7-commandAction|21|7-postCommandAction
 // write post-action user code here
}//GEN-BEGIN:|7-commandAction|22|
//</editor-fold>//GEN-END:|7-commandAction|22|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: lstOpTypes ">//GEN-BEGIN:|14-getter|0|14-preInit
/**
 * Returns an initiliazed instance of lstOpTypes component.
 * @return the initialized component instance
 */
public List getLstOpTypes () {
if (lstOpTypes == null) {//GEN-END:|14-getter|0|14-preInit
 // write pre-init user code here
lstOpTypes = new List ("Choose operation type", Choice.IMPLICIT);//GEN-BEGIN:|14-getter|1|14-postInit
lstOpTypes.append ("Sigaretes", null);
lstOpTypes.append ("Transport", null);
lstOpTypes.addCommand (getOpTypeSelectCommand ());
lstOpTypes.addCommand (getLstMenuItemCommand ());
lstOpTypes.addCommand (getAddOpTypeItemCommand ());
lstOpTypes.addCommand (getLstOpTypesExitCommand ());
lstOpTypes.setCommandListener (this);
lstOpTypes.setSelectedFlags (new boolean[] { false, false });//GEN-END:|14-getter|1|14-postInit
 // write post-init user code here
}//GEN-BEGIN:|14-getter|2|
return lstOpTypes;
}
//</editor-fold>//GEN-END:|14-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Method: lstOpTypesAction ">//GEN-BEGIN:|14-action|0|14-preAction
/**
 * Performs an action assigned to the selected list element in the lstOpTypes component.
 */
public void lstOpTypesAction () {//GEN-END:|14-action|0|14-preAction
 // enter pre-action user code here
String __selectedString = getLstOpTypes ().getString (getLstOpTypes ().getSelectedIndex ());//GEN-BEGIN:|14-action|1|25-preAction
if (__selectedString != null) {
if (__selectedString.equals ("Sigaretes")) {//GEN-END:|14-action|1|25-preAction
 // write pre-action user code here
//GEN-LINE:|14-action|2|25-postAction
 // write post-action user code here
} else if (__selectedString.equals ("Transport")) {//GEN-LINE:|14-action|3|26-preAction
 // write pre-action user code here
//GEN-LINE:|14-action|4|26-postAction
 // write post-action user code here
}//GEN-BEGIN:|14-action|5|14-postAction
}//GEN-END:|14-action|5|14-postAction
 // enter post-action user code here
}//GEN-BEGIN:|14-action|6|
//</editor-fold>//GEN-END:|14-action|6|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: lstOpTypesExitCommand ">//GEN-BEGIN:|19-getter|0|19-preInit
/**
 * Returns an initiliazed instance of lstOpTypesExitCommand component.
 * @return the initialized component instance
 */
public Command getLstOpTypesExitCommand () {
if (lstOpTypesExitCommand == null) {//GEN-END:|19-getter|0|19-preInit
 // write pre-init user code here
lstOpTypesExitCommand = new Command ("Exit", Command.EXIT, 0);//GEN-LINE:|19-getter|1|19-postInit
 // write post-init user code here
}//GEN-BEGIN:|19-getter|2|
return lstOpTypesExitCommand;
}
//</editor-fold>//GEN-END:|19-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: frmOpEdit ">//GEN-BEGIN:|22-getter|0|22-preInit
/**
 * Returns an initiliazed instance of frmOpEdit component.
 * @return the initialized component instance
 */
public Form getFrmOpEdit () {
if (frmOpEdit == null) {//GEN-END:|22-getter|0|22-preInit
 // write pre-init user code here
frmOpEdit = new Form ("Add operation", new Item[] { getOpEditFormOpTypeStrItem () });//GEN-BEGIN:|22-getter|1|22-postInit
frmOpEdit.addCommand (getFrmOpEditCancelCommand ());
frmOpEdit.setCommandListener (this);//GEN-END:|22-getter|1|22-postInit
 // write post-init user code here
}//GEN-BEGIN:|22-getter|2|
return frmOpEdit;
}
//</editor-fold>//GEN-END:|22-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: opTypeSelectCommand ">//GEN-BEGIN:|23-getter|0|23-preInit
/**
 * Returns an initiliazed instance of opTypeSelectCommand component.
 * @return the initialized component instance
 */
public Command getOpTypeSelectCommand () {
if (opTypeSelectCommand == null) {//GEN-END:|23-getter|0|23-preInit
 // write pre-init user code here
opTypeSelectCommand = new Command ("Select", Command.SCREEN, 0);//GEN-LINE:|23-getter|1|23-postInit
 // write post-init user code here
}//GEN-BEGIN:|23-getter|2|
return opTypeSelectCommand;
}
//</editor-fold>//GEN-END:|23-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Method: isOpTypeSelected ">//GEN-BEGIN:|28-if|0|28-preIf
/**
 * Performs an action assigned to the isOpTypeSelected if-point.
 */
public void isOpTypeSelected () {//GEN-END:|28-if|0|28-preIf
 // enter pre-if user code here
if (this.getLstOpTypes().getSelectedIndex() != -1) {//GEN-LINE:|28-if|1|29-preAction
 // write pre-action user code here
 String txt = this.getLstOpTypes().getString(this.getLstOpTypes().getSelectedIndex());   
 this.getOpEditFormOpTypeStrItem().setText(txt);   
switchDisplayable (null, getFrmOpEdit ());//GEN-LINE:|28-if|2|29-postAction
 // write post-action user code here
} else {//GEN-LINE:|28-if|3|30-preAction
 // write pre-action user code here
switchDisplayable (null, getLstOpTypes ());//GEN-LINE:|28-if|4|30-postAction
 // write post-action user code here
}//GEN-LINE:|28-if|5|28-postIf
 // enter post-if user code here
}//GEN-BEGIN:|28-if|6|
//</editor-fold>//GEN-END:|28-if|6|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: opEditFormOpTypeStrItem ">//GEN-BEGIN:|34-getter|0|34-preInit
/**
 * Returns an initiliazed instance of opEditFormOpTypeStrItem component.
 * @return the initialized component instance
 */
public StringItem getOpEditFormOpTypeStrItem () {
if (opEditFormOpTypeStrItem == null) {//GEN-END:|34-getter|0|34-preInit
 // write pre-init user code here
opEditFormOpTypeStrItem = new StringItem ("Hello!", null);//GEN-LINE:|34-getter|1|34-postInit
 // write post-init user code here
}//GEN-BEGIN:|34-getter|2|
return opEditFormOpTypeStrItem;
}
//</editor-fold>//GEN-END:|34-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: frmOpEditCancelCommand ">//GEN-BEGIN:|35-getter|0|35-preInit
/**
 * Returns an initiliazed instance of frmOpEditCancelCommand component.
 * @return the initialized component instance
 */
public Command getFrmOpEditCancelCommand () {
if (frmOpEditCancelCommand == null) {//GEN-END:|35-getter|0|35-preInit
 // write pre-init user code here
frmOpEditCancelCommand = new Command ("Cancel", Command.CANCEL, 0);//GEN-LINE:|35-getter|1|35-postInit
 // write post-init user code here
}//GEN-BEGIN:|35-getter|2|
return frmOpEditCancelCommand;
}
//</editor-fold>//GEN-END:|35-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: txtAddOpType ">//GEN-BEGIN:|41-getter|0|41-preInit
/**
 * Returns an initiliazed instance of txtAddOpType component.
 * @return the initialized component instance
 */
public TextBox getTxtAddOpType () {
if (txtAddOpType == null) {//GEN-END:|41-getter|0|41-preInit
 // write pre-init user code here
txtAddOpType = new TextBox ("Add operation type", null, 100, TextField.ANY);//GEN-BEGIN:|41-getter|1|41-postInit
txtAddOpType.addCommand (getTxtAddOpTypeOkCommand ());
txtAddOpType.addCommand (getTxtAddOpTypeCancelCommand ());
txtAddOpType.setCommandListener (this);//GEN-END:|41-getter|1|41-postInit
 // write post-init user code here
}//GEN-BEGIN:|41-getter|2|
return txtAddOpType;
}
//</editor-fold>//GEN-END:|41-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: addOpTypeItemCommand ">//GEN-BEGIN:|42-getter|0|42-preInit
/**
 * Returns an initiliazed instance of addOpTypeItemCommand component.
 * @return the initialized component instance
 */
public Command getAddOpTypeItemCommand () {
if (addOpTypeItemCommand == null) {//GEN-END:|42-getter|0|42-preInit
 // write pre-init user code here
addOpTypeItemCommand = new Command ("Add Type", Command.ITEM, 0);//GEN-LINE:|42-getter|1|42-postInit
 // write post-init user code here
}//GEN-BEGIN:|42-getter|2|
return addOpTypeItemCommand;
}
//</editor-fold>//GEN-END:|42-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: txtAddOpTypeOkCommand ">//GEN-BEGIN:|45-getter|0|45-preInit
/**
 * Returns an initiliazed instance of txtAddOpTypeOkCommand component.
 * @return the initialized component instance
 */
public Command getTxtAddOpTypeOkCommand () {
if (txtAddOpTypeOkCommand == null) {//GEN-END:|45-getter|0|45-preInit
 // write pre-init user code here
txtAddOpTypeOkCommand = new Command ("Ok", Command.OK, 0);//GEN-LINE:|45-getter|1|45-postInit
 // write post-init user code here
}//GEN-BEGIN:|45-getter|2|
return txtAddOpTypeOkCommand;
}
//</editor-fold>//GEN-END:|45-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: txtAddOpTypeCancelCommand ">//GEN-BEGIN:|47-getter|0|47-preInit
/**
 * Returns an initiliazed instance of txtAddOpTypeCancelCommand component.
 * @return the initialized component instance
 */
public Command getTxtAddOpTypeCancelCommand () {
if (txtAddOpTypeCancelCommand == null) {//GEN-END:|47-getter|0|47-preInit
 // write pre-init user code here
txtAddOpTypeCancelCommand = new Command ("Cancel", Command.CANCEL, 0);//GEN-LINE:|47-getter|1|47-postInit
 // write post-init user code here
}//GEN-BEGIN:|47-getter|2|
return txtAddOpTypeCancelCommand;
}
//</editor-fold>//GEN-END:|47-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: lstMenu ">//GEN-BEGIN:|54-getter|0|54-preInit
/**
 * Returns an initiliazed instance of lstMenu component.
 * @return the initialized component instance
 */
public List getLstMenu () {
if (lstMenu == null) {//GEN-END:|54-getter|0|54-preInit
 // write pre-init user code here
lstMenu = new List ("Menu", Choice.IMPLICIT);//GEN-BEGIN:|54-getter|1|54-postInit
lstMenu.append ("Add operation", null);
lstMenu.append ("Add operation type", null);
lstMenu.append ("Operations", null);
lstMenu.append ("Export", null);
lstMenu.append ("Exit", null);
lstMenu.addCommand (getLstMenuBackCommand ());
lstMenu.setCommandListener (this);
lstMenu.setSelectedFlags (new boolean[] { false, false, false, false, false });//GEN-END:|54-getter|1|54-postInit
 // write post-init user code here
}//GEN-BEGIN:|54-getter|2|
return lstMenu;
}
//</editor-fold>//GEN-END:|54-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Method: lstMenuAction ">//GEN-BEGIN:|54-action|0|54-preAction
/**
 * Performs an action assigned to the selected list element in the lstMenu component.
 */
public void lstMenuAction () {//GEN-END:|54-action|0|54-preAction
 // enter pre-action user code here
String __selectedString = getLstMenu ().getString (getLstMenu ().getSelectedIndex ());//GEN-BEGIN:|54-action|1|60-preAction
if (__selectedString != null) {
if (__selectedString.equals ("Add operation")) {//GEN-END:|54-action|1|60-preAction
 // write pre-action user code here
switchDisplayable (null, getLstOpTypes ());//GEN-LINE:|54-action|2|60-postAction
 // write post-action user code here
} else if (__selectedString.equals ("Add operation type")) {//GEN-LINE:|54-action|3|61-preAction
 // write pre-action user code here
switchDisplayable (null, getTxtAddOpType ());//GEN-LINE:|54-action|4|61-postAction
 // write post-action user code here
} else if (__selectedString.equals ("Operations")) {//GEN-LINE:|54-action|5|62-preAction
 // write pre-action user code here
//GEN-LINE:|54-action|6|62-postAction
 // write post-action user code here
} else if (__selectedString.equals ("Export")) {//GEN-LINE:|54-action|7|63-preAction
 // write pre-action user code here
//GEN-LINE:|54-action|8|63-postAction
 // write post-action user code here
} else if (__selectedString.equals ("Exit")) {//GEN-LINE:|54-action|9|64-preAction
 // write pre-action user code here
exitMIDlet ();//GEN-LINE:|54-action|10|64-postAction
 // write post-action user code here
}//GEN-BEGIN:|54-action|11|54-postAction
}//GEN-END:|54-action|11|54-postAction
 // enter post-action user code here
}//GEN-BEGIN:|54-action|12|
//</editor-fold>//GEN-END:|54-action|12|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: lstMenuItemCommand ">//GEN-BEGIN:|57-getter|0|57-preInit
/**
 * Returns an initiliazed instance of lstMenuItemCommand component.
 * @return the initialized component instance
 */
public Command getLstMenuItemCommand () {
if (lstMenuItemCommand == null) {//GEN-END:|57-getter|0|57-preInit
 // write pre-init user code here
lstMenuItemCommand = new Command ("Main menu", Command.ITEM, 0);//GEN-LINE:|57-getter|1|57-postInit
 // write post-init user code here
}//GEN-BEGIN:|57-getter|2|
return lstMenuItemCommand;
}
//</editor-fold>//GEN-END:|57-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: lstMenuBackCommand ">//GEN-BEGIN:|65-getter|0|65-preInit
/**
 * Returns an initiliazed instance of lstMenuBackCommand component.
 * @return the initialized component instance
 */
public Command getLstMenuBackCommand () {
if (lstMenuBackCommand == null) {//GEN-END:|65-getter|0|65-preInit
 // write pre-init user code here
lstMenuBackCommand = new Command ("Back", Command.BACK, 0);//GEN-LINE:|65-getter|1|65-postInit
 // write post-init user code here
}//GEN-BEGIN:|65-getter|2|
return lstMenuBackCommand;
}
//</editor-fold>//GEN-END:|65-getter|2|

    /**
     * Returns a display instance.
     * @return the display instance.
     */
    public Display getDisplay() {
        return Display.getDisplay(this);
    }

    /**
     * Exits MIDlet.
     */
    public void exitMIDlet() {
        switchDisplayable(null, null);
        destroyApp(true);
        notifyDestroyed();
    }

    /**
     * Called when MIDlet is started.
     * Checks whether the MIDlet have been already started and initialize/starts or resumes the MIDlet.
     */
    public void startApp() {
        if (midletPaused) {
            resumeMIDlet();
        } else {
            initialize();
            startMIDlet();
        }
        midletPaused = false;
    }

    /**
     * Called when MIDlet is paused.
     */
    public void pauseApp() {
        midletPaused = true;
    }

    /**
     * Called to signal the MIDlet to terminate.
     * @param unconditional if true, then the MIDlet has to be unconditionally terminated and all resources has to be released.
     */
    public void destroyApp(boolean unconditional) {
    }
}
